package com.codeZ.FlyweightPattern.example;

/**
 * 共享对象享元实现类
 *
 * @author codeZhang
 * @Date 2024/8/16 09:19
 */
public class ConcreteFlyweight extends Flyweight{

    private final String intrinsicState;

    public ConcreteFlyweight(String intrinsicState) {
        this.intrinsicState = intrinsicState;
    }
    @Override
    public void operation(String extrinsicState) {
        System.out.println("共享对象享元实现类：" + intrinsicState + " " + extrinsicState);
    }
}
